PATH  Mac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Icon Services and Utilities
>
Obtaining and Using Icons With Icon Services

   

GetIconSizesFromIconRef

Provides an IconSelectorValue indicating the sizes and depths of icon data available for an IconRef .

pascal OSErr GetIconSizesFromIconRef(
                     IconSelectorValue iconSelectorInput,
                     IconSelectorValue *iconSelectorOutputPtr,
                     IconServicesUsageFlagsiconServicesUsageFlags,
                     IconRef iconRef);

iconSelectorInput
A value of type IconSelectorValue . You pass a value specifying the icon sizes and depths you are requesting from the IconRef . For a description of the possible values, see Icon Selector Constants .

iconSelectorOutputPtr
A pointer to a value of type IconSelectorValue . On return, this value describes the icon sizes and depths available for the specified IconRef . For a description of the possible values, see Icon Selector Constants .

iconServicesUsageFlags
Reserved for future use. Pass the kIconServicesDefaultUsageFlags constant in this parameter.

iconRef
A pointer to a value of type IconRef specifying the icon family to query.

function result
A result code. See Icon Services Result Codes for a description of possible return values.
DISCUSSION
Note that this function may be very time-consuming, as Icon Services may have to search disks or even the network to obtain the requested data.


© 1999 Apple Computer, Inc. – (Last Updated 03 Dec 99)